<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'tipoestudio-form',
	'enableAjaxValidation'=>false,
	)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'idEtapa'); ?>
		<?php 
			$etapas = CHtml::listData(Etapa::model()->findAll(), 'idEtapa', 'NombreEtapa');
			echo $form->dropDownList($model, 'idEtapa', $etapas, array('prompt' => ''));
		?>
		<?php echo $form->error($model,'idEtapa'); ?>
	
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'nombreEstudio'); ?>
		<?php echo $form->textField($model,'nombreEstudio',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'nombreEstudio'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'fieldType'); ?>
		<?php 
			$fieldTypes = CHtml::listData(Fieldtype::model()->findAll(), 'id', 'name');
			echo $form->dropDownList($model, 'fieldType', $fieldTypes, array('prompt' => ''));
		?>
		<?php echo $form->error($model,'fieldType'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->